<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="orderClientDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='orderClientDetail.heading'/>"/>
     <meta name="menu" content="UserMenu"/>
    <link type="text/css" href="<c:url value='/scripts/jquery-ui/css/smoothness/jquery-ui-1.8.12.custom.css'/>" rel="stylesheet" />	
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-1.5.1.min.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-ui-1.8.12.custom.min.js'/>"></script>
	<script>
	$(function() {
		$( "#orderClientForm_orderClient_orderDate" ).datepicker();
	});
</script>
</head>
<s:form id="orderClientForm" action="saveOrderClient" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="orderClient.id"/>
    </li>
     <c:if test="${subSystem}">
		 <s:checkbox key="orderClient.subSystem" id="orderClient.subSystem"  fieldValue="true"  theme="simple"/>
		 <label for="orderClient.subSystem" class="choice"><fmt:message key="orderClient.subSystem"/></label>
	</c:if>
    <s:textfield key="orderClient.client" required="true" cssClass="text medium"/>
    <s:textfield key="orderClient.idCard" required="false" cssClass="text medium"/>
    <s:select key="orderClient.orderType" list="orderTypes" listKey="description" listValue="description" cssClass="select"/>
	<s:select key="orderClient.source" list="orderSources" listKey="description" listValue="description" cssClass="select"/>
  	<s:textfield key="orderClient.introducer" required="false" cssClass="text medium"/>
  	<s:textfield key="orderClient.introducerCell" required="false" cssClass="text medium"/>
	<s:textfield key="orderClient.remark" required="false" cssClass="text medium"/>
	<s:textfield key="orderClient.orderDate" required="true" cssClass="text medium"/>
    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<display:table name="conflictOrderClientList"  defaultsort="2" defaultorder="descending" class="table" requestURI="" id="conflictOrderClientList" export="true" pagesize="25">

    <display:column property="id" sortable="true" titleKey="orderClient.id"/>
    <display:column property="orderDate" group="1" sortable="true" titleKey="orderClient.orderDate"/>
    <display:column property="user.username" group="2" sortable="true" titleKey="orderClient.user.username"/>
    <display:column property="user.fullName"  sortable="true" titleKey="orderClient.user.fullName"/>
    <display:column property="orderType" group="3" sortable="true" titleKey="orderClient.orderType"/>
    <display:column property="source" group="4" sortable="true" titleKey="orderClient.source"/>
    <display:column property="client" sortable="true" titleKey="orderClient.client"/>
    <display:column property="idCard" sortable="true" titleKey="orderClient.idCard"/>
    <display:column property="introducer" sortable="true" titleKey="orderClient.introducer"/>
    <display:column property="introducerCell" sortable="true" titleKey="orderClient.introducerCell"/>
    <display:column property="subTime" sortable="true" titleKey="orderClient.subTime"/>
     <display:column property="remark" sortable="true" titleKey="orderClient.remark"/>
    <display:column property="modifyTime" sortable="true" titleKey="orderClient.modifyTime"/>
    <display:column titleKey="orderClient.subSystem" style="width: 16%; padding-left: 15px" media="html">
       <input type="checkbox" disabled="disabled" <c:if test="${conflictOrderClientList.subSystem}">checked="checked"</c:if>/>
    </display:column>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="orderClientList.orderClients"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="orderClientList.orderClients"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="orderClientList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="orderClientList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="orderClientList.title"/>.pdf</display:setProperty>
</display:table>


<display:table name="accountList" defaultsort="2" defaultorder="descending" class="table" requestURI="" id="accountList" export="true" pagesize="25">

    <display:column property="id" sortable="true"  titleKey="account.id"/>
    
    <display:column property="openDay" group="1" sortable="true" titleKey="account.openDay"/>
    <display:column property="staff.staffId" group="2" sortable="true" titleKey="staff.staffId"/>
    <display:column property="staff.name" sortable="true" titleKey="staff.name"/>
    <display:column property="transfer" group="3" sortable="true" titleKey="account.transfer"/>
    <display:column property="account" sortable="true" titleKey="account.account"/>
    <display:column property="name" sortable="true" titleKey="account.name"/>
	<display:column property="stockShNumber" sortable="true" titleKey="account.stockShNumber"/>
	<display:column property="stockShOpenDay" sortable="true" titleKey="account.stockShOpenDay"/>
	<display:column property="stockShNumberB" sortable="true" titleKey="account.stockShNumberB"/>
	<display:column property="stockShOpenDayB" sortable="true" titleKey="account.stockShOpenDayB"/>
	<display:column property="stockSzNumber" sortable="true" titleKey="account.stockSzNumber"/>
	<display:column property="stockSzOpenDay" sortable="true" titleKey="account.stockSzOpenDay"/>
	<display:column property="stockSzNumberB" sortable="true" titleKey="account.stockSzNumberB"/>
	<display:column property="stockSzOpenDayB" sortable="true" titleKey="account.stockSzOpenDayB"/>
    <display:column property="subTime" sortable="true" titleKey="account.subTime"/>
    <display:column property="remark" sortable="true" titleKey="account.remark"/>
    <display:column property="lastModifyTime" sortable="true" titleKey="account.lastModifyTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="accountList.accounts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountList.accounts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountList.title"/>.pdf</display:setProperty>
</display:table>

<script type="text/javascript">
    Form.focusFirstElement($("orderClientForm"));
</script>
